<?php

namespace app\modules\admin\controllers;

class HoutaiController extends \yii\web\Controller
{
	
	function beforeAction()
	{
		//echo "test";
		
		
		
		//$url = \Yii::$app->getBasePath()."/admin/default/index";
		//$this->redirect("index.php?r=admin/default/index" );
	  if(!\Yii::$app->session['user_info'])
	  {
	  	
	    $this->redirect("index.php?r=admin/default/index");
	  }
	  
	  
	}
	
    public function actionIndex()
    {
        return $this->render('index');
    }

}
